<!--
 * @Description: 
 * @Version: 
 * @Author: 学渣小明
 * @Date: 2022-05-03 11:19:47
 * @LastEditors: 学渣小明
 * @LastEditTime: 2022-05-03 12:09:11
-->
<div id="fragment-index-calendar" style="background-color: #695F57">
    <p class="date">13</p>
    <p class="line">/</p>
    <p class="week">周一 <br> 2000年1月</p>
    <div class="right-link">
        <p>电梯频道采购</p>
        <p class="btn">
            <a href="http://www.caigou2003.com/reg/yctgjhy/" target="_blank"><i class="iconfont icon-rili"></i><span>打卡赚采币</span></a>
        </p>
    </div>
</div>
<script>
    var now = new Date(
        $.ajax({
            url: '',
            async: false,
            method: 'get',
            dataType: '',
            context: document.body,
        }).getResponseHeader("Date")
    );

    $('.date').text(now.getDate());
    var day = '';
    switch (now.getDay()) {
        case 0:
            day = "周日";
            break;
        case 1:
            day = "周一";
            break;
        case 2:
            day = "周二";
            break;
        case 3:
            day = "周三";
            break;
        case 4:
            day = "周四";
            break;
        case 5:
            day = "周五";
            break;
        case 6:
            day = "周六";
    }
    $('.week').html(day + '<br>' + now.getFullYear() + '年' + (now.getMonth() + 1) + '月');
</script>